package com.foreknow.elmboot.controller;

import com.foreknow.elmboot.po.Users;
import com.foreknow.elmboot.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 最酷的桃儿wjc
 * * @date 2022/5/9
 */
@RestController
@RequestMapping("/testController")
public class UsersController {
    @Autowired
    private UsersService usersService;
    @RequestMapping("/test")
    public Users test(Users users){
        return usersService.test(users.getUserId(),users.getPassword());
    }

}
